<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%><%@include file="/jsp/commons/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<jsp:include page="/jsp/commons/cssinclude.jsp"></jsp:include>
<jsp:include page="/jsp/commons/scriptinclude.jsp"></jsp:include>
</head>
<body>

	<div class="mainbox">
		<div class="main_content">

			<div class="main_right">
				<!--面包屑 begin-->
				<div class="main_rightbox">
					<div class="ec_crumb_kc">
						<div class="mbx icon_index">当前位置：管理中心</div>
					</div>
				</div>

				<!--待办事宜 begin-->
				<div class="ty_border">
					<div class="ty_head">
						<span class="icon2"></span>待办事宜<em class="cRed">（请您及时处理）</em>
					</div>
					<div class="ty_body">
						<!--表格 & 分页-->
						<form id="businessForm" method="post">
							<input type="hidden" name="noticeDTO.notice.receiveDepart"
								value="DEPARTMENT_MANAGE_CENTER">
							<input type="hidden" name="noticeDTO.notice.result"
								value="0">
						</form>
						<div id="noticeResult">
							<table width="100%" border="0" cellspacing="0" cellpadding="0"
								class="tab">
								<tr>
									<th>序号</th>
									<th>下单日期</th>
									<th>主题内容</th>
									<th>下单部门</th>
									<th>下单人</th>
									<th>指定完成日期</th>
									<th>接受部门</th>
									<th>接单人</th>
									<th>进展情况</th>
									<th>完成结果</th>
									<th>操作</th>
								</tr>
								<tr>
									<td colspan="10">正在查询...</td>
								</tr>
							</table>
						</div>
					</div>
				</div>

				<!--待审核事宜 begin-->
				<div class="ty_border">
					<div class="ty_head">
						<span class="icon2"></span>待审核事宜<em class="cRed">（请您及时处理）</em>
					</div>
					<div class="ty_body">
						<!--表格 & 分页-->
						<div id="dispatchResult">
							<table width="100%" border="0" cellspacing="0" cellpadding="0"
								class="tab">
								<tr>
									<th>序号</th>
									<th>报修日期</th>
									<th>客户名称</th>
									<th>报修联系人</th>
									<th>报修联系电话</th>
									<th>故障原因</th>
									<th>路线</th>
									<th>维修技术员</th>
									<th>维修技术员联系方式</th>
									<th>操作</th>
								</tr>
								<tr>
									<td colspan="10">正在查询...</td>
								</tr>
							</table>
						</div>
					</div>
				</div>
				<!--中心制度列表 begin-->
				<div class="ty_border">
					<div class="ty_head">
						<span class="icon2"></span>中心制度<em class="cRed"></em>
					</div>
					<div class="ty_body">
						<div class="yj_first">
							<span>一级预警</span>Iphone4s 库存预警 (6个)
						</div>
						<div class="yj_second">
							<span>二级预警</span>Iphone5s 库存预警 (2个)
						</div>
						<div class="yj_first">
							<span>一级预警</span>Iphone4s 库存预警 (6个)
						</div>
						<div class="yj_second">
							<span>二级预警</span>Iphone5s 库存预警 (2个)
						</div>
						<div class="yj_first">
							<span>一级预警</span>Iphone4s 库存预警 (6个)
						</div>
						<div class="yj_second">
							<span>二级预警</span>Iphone5s 库存预警 (2个)
						</div>
						<div class="yj_first">
							<span>一级预警</span>Iphone4s 库存预警 (6个)
						</div>
						<div class="yj_second">
							<span>二级预警</span>Iphone5s 库存预警 (2个)
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!--提醒详情弹出层 begin-->
	<div id="noticeDetailDialog" style="display: none"></div>
</body>
<script type="text/javascript">
	//处理提醒
	function processNotice(noticeId) {
		//异步加载提醒信息
		$("#noticeDetailDialog").load(
						"${ctx }/notice/noticeAction!processInit.action",
						{
							random : Math.random(),
							'notice.noticeId' : noticeId 
						},
						function() {
							art.dialog({
							    id: 'noticeArtDialog',
							    title: '处理提醒',
							    content: $("#noticeDetailDialog").html(),//绑定内容
							    button: [
							             {
							                 name: '已处理',
							                 callback: function () {
												//修改提醒处理状态
							                	 $.post(
							    		        		 "${ctx }/notice/noticeAction!processNotice.action", 
							    		    				{random:Math.random(),'notice.noticeId' : noticeId }, 
							    		    				function(jsonData){
							    		    					 var data = strToJson(jsonData);
							    		    					 if(data.flag=="success"){
							    		    						 art.dialog.tips('操作成功！', 1.5);
							    		    						 queryNotice();
							    		    					 }else{
							    		    						 art.dialog.tips('系统异常，请联系管理员！', 1.5);
							    		    					 }
							    		    				}
							    		           );
							                 },
							                 focus: true
							             },
							             {
							                 name: '关闭' 
							             } 
							         ]
							});
						}

				);
	}

	//报修记录分页查询
	function queryDispatch() {
		var path = "${ctx}/dispatch/dispatchAction!toReviewList.action";
		queryByCon(path, "dispatchResult");
	}

	//通知提醒分页查询
	function queryNotice() {
		var path = "${ctx}/notice/noticeAction!toCenterList.action";
		queryByCon(path, "noticeResult");
	}

	function queryPageByCon(path, pageindex, insertDom) {
		pageIndex = pageindex;
		queryByCon(path, insertDom);
	}

	$(document).ready(function() {
		queryNotice();
		queryDispatch();
	});

	//审核维修
	function dispatchReview(dispatchId) {
		art.dialog.confirm('你确认审核操作？', function() {
			alert("已审核");
		}, function() {
		});
	}
</script>
</html>